l = input()
list1 = l[1:l.rindex(']')].split(',')
result = []
for i in list1:
    if i not in result:
        result.append(i)
for i in range(0, len(result)):
    if i == 0:
        print(result[0], end='')
    else:
        print(f' {result[i]}', end='')